//
//  DInfoViewController.m
//  dance
//
//  Created by aether on 2023/10/20.
//

#import "DInfoViewController.h"

@interface DInfoViewController ()

@property (nonatomic, strong) IBOutlet UIWebView *web;

@end

@implementation DInfoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    [self initViews];
}

- (void) initViews {
    self.title = [self.info objectForKey:@"title"];
    
    NSLog(@"%@", [self.info objectForKey:@"html"]);

    NSURL *htmlFileURL = [[NSBundle mainBundle] URLForResource:[self.info objectForKey:@"html"] withExtension:@"html"];
    NSURLRequest *request = [NSURLRequest requestWithURL:htmlFileURL];
    [self.web loadRequest:request];
}

@end
